using System;
using System.Reflection;
using System.Runtime.Serialization;

namespace OracleInternal.Common
{
	internal sealed class DeserializationBinder : SerializationBinder
	{
		public override Type BindToType(string assemblyName, string typeName)
		{
			string fullName = Assembly.GetExecutingAssembly().FullName;
			return Type.GetType($"{typeName}, {fullName}");
		}
	}
}
